var swiper = new Swiper('#product', {
    direction: 'vertical',
    mousewheel:true,
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
    },
  });
  var is_weixin = (function () { return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1 })();
    var u = navigator.userAgent.app = navigator.appVersion;
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;
    var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    $(".btn").click(function () {
        if (isAndroid) {
            if (is_weixin) {
                $(".tips").show();
                $(".know").click(function () {
                    $(".tips").hide();
                })
            } else {
                window.location.href = "http://www.baidu.com"
            }
        } else if (isIOS) {
            window.location.href = "https://apps.apple.com/cn/app/%E6%A8%B1%E6%A1%83%E5%B0%8F%E8%AF%B4-%E8%BF%BD%E4%B9%A6%E5%BF%85%E5%A4%87%E5%B0%8F%E8%AF%B4%E9%98%85%E8%AF%BB%E7%A5%9E%E5%99%A8/id1476531047"
        }
    })